<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html lang="fr">
<jsp:include page="header.jsp" />

<%@ page import="java.util.List"%>
<%@ page import="com.google.gdata.data.photos.*"%>

<%@ page import="com.diemat.tools.PicasaAccess"%>

<body data-spy="scroll" data-target=".bs-docs-sidebar">

	<jsp:include page="navigation-bar.jsp">
		<jsp:param name="active" value="phototeque" />
	</jsp:include>

	<div class="jumbotron subhead">
		<div class="container">
			<h1>Phototeque</h1>
		</div>
	</div>
	<div class="container">
		<div class="marketing">
			<%
				PicasaAccess myPicasa = new PicasaAccess();
				List<AlbumEntry> myAlbumList = myPicasa
						.getAlbumListForUser("puteaux.handball");
				Integer albumPerLine = 3;
				for (AlbumEntry myAlbum : myAlbumList) {
					if (albumPerLine == 3) {
			%>
			<div class="row-fluid">
				<%
					albumPerLine = 1;
						} else {

							albumPerLine++;
						}
				%>

				<div class="span4">
					<h5>
						<a href="<%=myAlbum.getHtmlLink().getHref()%>"><%=myAlbum.getTitle().getPlainText()%></a>
					</h5>
					<a href="gallery_evo.jsp?albumId=<%=myAlbum.getGphotoId()%>"> <img
						class="img-rounded" alt=""
						src="<%=myPicasa.getAlbumCover(myAlbum)%>">
					</a>

				</div>
				<%
					if (albumPerLine == 3) {
				%>
			</div>
			<%
				}
			%>
			<%
				}
			%>

		</div>
	</div>
	<hr class="soften">

	<jsp:include page="footer.jsp" />
</body>
</html>
